#include<bits/stdc++.h>

using namespace std;

void Strcpy(char *p, char *q) {
    while ((*p++ = *q++) != '\0');

}

int main() {
    char s[100] = "ABA";
    char t[100];
    Strcpy(t, s);
    cout << t << endl;
    return 0;
}
